<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>pg_test_fsync</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REV="MADE"
HREF="mailto:pgsql-docs@postgresql.org"><LINK
REL="HOME"
TITLE="PostgreSQL 9.1.2 Documentation"
HREF="index.html"><LINK
REL="UP"
TITLE="Additional Supplied Modules"
HREF="contrib.html"><LINK
REL="PREVIOUS"
TITLE="pgstattuple"
HREF="pgstattuple.html"><LINK
REL="NEXT"
TITLE="pg_trgm"
HREF="pgtrgm.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="stylesheet.css"><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=ISO-8859-1"><META
NAME="creation"
CONTENT="2011-12-01T22:07:59"></HEAD
><BODY
CLASS="SECT1"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="5"
ALIGN="center"
VALIGN="bottom"
><A
HREF="index.html"
>PostgreSQL 9.1.2 Documentation</A
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
TITLE="pgstattuple"
HREF="pgstattuple.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
HREF="contrib.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="60%"
ALIGN="center"
VALIGN="bottom"
>Appendix F. Additional Supplied Modules</TD
><TD
WIDTH="20%"
ALIGN="right"
VALIGN="top"
><A
TITLE="pg_trgm"
HREF="pgtrgm.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="PGTESTFSYNC"
>F.34. pg_test_fsync</A
></H1
><P
>  <SPAN
CLASS="APPLICATION"
>pg_test_fsync</SPAN
> is intended to give you a reasonable
  idea of what the fastest <A
HREF="runtime-config-wal.html#GUC-WAL-SYNC-METHOD"
>wal_sync_method</A
> is on your
  specific system,
  as well as supplying diagnostic information in the event of an
  identified I/O problem.  However, differences shown by pg_test_fsync
  might not make any difference in real database throughput, especially
  since many database servers are not speed-limited by their transaction
  logs.
 </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN135816"
>F.34.1. Usage</A
></H2
><PRE
CLASS="SYNOPSIS"
>pg_test_fsync [options]</PRE
><P
>    <SPAN
CLASS="APPLICATION"
>pg_test_fsync</SPAN
> accepts the following
    command-line options:

    <P
></P
></P><DIV
CLASS="VARIABLELIST"
><DL
><DT
><TT
CLASS="OPTION"
>-f</TT
><BR><TT
CLASS="OPTION"
>--filename</TT
></DT
><DD
><P
>        Specifies the file name to write test data in.
        This file should be in the same file system that the
        <TT
CLASS="FILENAME"
>pg_xlog</TT
> directory is or will be placed in.
        (<TT
CLASS="FILENAME"
>pg_xlog</TT
> contains the <ACRONYM
CLASS="ACRONYM"
>WAL</ACRONYM
> files.)
        The default is <TT
CLASS="FILENAME"
>pg_test_fsync.out</TT
> in the current
        directory.
       </P
></DD
><DT
><TT
CLASS="OPTION"
>-o</TT
><BR><TT
CLASS="OPTION"
>--ops-per-test</TT
></DT
><DD
><P
>        Specifies the number of operations per test.  The more operations
        per test, the greater the test's accuracy, but the longer it takes
        to run.  The default is 2000.
       </P
></DD
></DL
></DIV
><P>
   </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN135840"
>F.34.2. Author</A
></H2
><P
>   Bruce Momjian <CODE
CLASS="EMAIL"
>&#60;<A
HREF="mailto:bruce@momjian.us"
>bruce@momjian.us</A
>&#62;</CODE
>
  </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="pgstattuple.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="pgtrgm.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>pgstattuple</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="contrib.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>pg_trgm</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>